﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication3.基础信息管理
{
    public partial class material_add : Form
    {
        public material_add()
        {
            InitializeComponent();
        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            string materialID = text_materialID.Text;
            string materialName = text_materialName.Text;
            string materialTimeIntoStorage = text_dateTimePicker1.Text.ToString();
            string materialLocation = text_location.Text;
            权限管理.permissionManaging.mySql.excute_sql("insert into baseInfotable values ('"
                    + materialID + "','"
                    + materialName + "','"
                    + materialTimeIntoStorage + "','"
                    + materialLocation + "')");
            this.Dispose();

        }

        private void button_cancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}
